package cc.cix.hq.common.core;

import cc.cix.hq.common.core.handler.BaseExceptionHandler;
import cc.cix.hq.common.core.handler.BaseMetaObjectHandler;
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
import org.springframework.context.annotation.Bean;

/**
 * @author cix
 */
public class CommonAutoConfiguration {

    @Bean
    public BaseExceptionHandler baseExceptionHandler() {
        return new BaseExceptionHandler();
    }

    @Bean
    public MetaObjectHandler metaObjectHandler() {
        return new BaseMetaObjectHandler();
    }

}
